<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>菜单管理</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/themes/icon.css">
<link rel="stylesheet" href="<%=basePath%>css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="<%=basePath%>rbac/menu/js/menu.js"></script>
</head>

<body>
	<div id="menuPanel" style="padding:10px;">
		<ul id="tree" class="ztree"></ul>
	</div>
	<div id="mm" class="easyui-menu" style="width:120px;">
		<div data-options="name:'addFolder',iconCls:'icon-add'" id="addFolder">添加目录</div>
		<div data-options="name:'updateFolder',iconCls:'icon-edit'" id="updateFolder">修改目录</div>
		<div data-options="name:'delFolder',iconCls:'icon-cancel'" id="delFolder">删除目录</div>
		<div class="menu-sep"></div>  
		<div data-options="name:'add',iconCls:'icon-add'" id="add">添加菜单</div>
		<div data-options="name:'update',iconCls:'icon-edit'" id="update">修改菜单</div>
		<div data-options="name:'del',iconCls:'icon-cancel'" id="del">删除菜单</div>
	</div>
	<div id="dialog" class="easyui-window" closed="true">
		<table>
			<tbody id="foldermenu">
				<tr>
					<td>根节点名称:</td>
					<td><input type="text" id="folderName" /></td>
				</tr>
				<tr>
					<td>根节点排序:</td>
					<td><input id="folderSort"> </td>
				</tr>
			</tbody>
			<tbody id="menu">
				<tr>
					<td>菜单名称:</td>
					<td><input type="text" id="name" /></td>
				</tr>
				<tr>
					<td>菜单路径:</td>
					<td><input type="text" id="path" /></td>
				</tr>
				<tr>
					<td>菜单排序:</td>
					<td><input id="sort"> </td>
				</tr>
			</tbody>
		</table>
	</div>
</body>
</html>
